cmake_minimum_required(VERSION 3.10)
project(atlas)

file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
add_library(${PROJECT_NAME} SHARED ${SRCS})
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-Wl,--disable-new-dtags,-rpath,${EVDEPLOY_LIB_PATH}")
add_definitions("-DENABLE_DVPP_INTERFACE")
add_definitions("-DATLAS")
target_include_directories(${PROJECT_NAME}
PUBLIC
    ${CMAKE_SOURCE_DIR}
    ${RUNTIME_INCLUDE_DIRS}
PRIVATE
    ${evauth_INCLUDE_DIRS}
    ${CMAKE_BINARY_DIR}/generated/
)

target_link_libraries(${PROJECT_NAME} 
PRIVATE 
    ${RUNTIME_LIBS} 
    ${OpenCV_LIBS}
    ${evauth_LIBS}
    glog
    evdeploy
)

install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
